let a = document.getElementById("intro")
console.log(a)

let b = document.getElementById("isdiv")
let c = b.getElementsByTagName("p")
let d = document.getElementsByClassName("ish1")
console.log(c)
console.log(d)

document.write(Date())

a.innerText = "我被innerText修改了"

// document.getElementById("image").src = "https://th.bing.com/th/id/R1fdf3a183158c62b91e690d8beee6ebe?rik=mHL6yEiXiMAK9Q&riu=http%3a%2f%2fwww.shijuepi.com%2fuploads%2fallimg%2f200918%2f1-20091Q10417.jpg&ehk=wzkrRqNZfU1InC6bUzefYssPjoFNJBZZ7qSj6P7WHPI%3d&risl=&pid=ImgRaw"

document.getElementById("p2").style.color = "red"
document.getElementById("p2").style.fontSize = "30px"

function modifyP2(){
    document.getElementById("p2").style.color = "blue"
    document.getElementById("p2").style.fontSize = "10px"
}

function modifyP1(){
    document.getElementById("p1").style.color = "#7950f2"
}

document.getElementById("button1").onclick = function (){
    modifyP1()
}

function showHello(){
    alert("你好啊，开发者")
}

function showBye(){
    alert("欢迎下次再来")
}

function upperCase(){
    let e = document.getElementById("fname")
    e.value = e.value.toUpperCase()
}

function mOver(obj){
    obj.innerText = "欢迎进入"
}

function mOut(obj){
    obj.innerText = "移出"
}
